package Kernel;

public class Arc_T2P extends Arc{
	
	public Arc_T2P(Transition t, Place p) {
		super(p,t);
	}
	public Arc_T2P(Transition t, Place p, long weight) {
		super(p,t,weight);
	}
	
	public boolean Check_State() {
		return p.GetMarking()+this.weight<=p.GetCapacity();
	}
	
	public void Fire() {
		p.FillToken(this.weight);
	}
	
}
